import { messageConfig } from "element-plus";

export default defineBackground(() => {
  const queryurl = 'http://10.10.21.28/gmp/static/sp/operationqualification/unifiedqualifications/personnelfiles/OtherUnitOperatorArchiveList.html';
  browser.runtime.onMessage.addListener((message,sender,sendResponse)=>{
    if(message=='createtabs_tk'){
      browser.tabs.create({
        url:queryurl,
        active:true,
      })
    }
    setTimeout(() => {
      sendResponse('finnish')
    }, 1000);
    return true;
  });
});
